package com.stox.shared.indicator.model.config;

public class StochasticConfig extends BaseIndicatorConfig {

	private int dSpan = 3;
	private int slowSpan = 3;
	
	public StochasticConfig() {
		setSpan(14);
	}
	
	public StochasticConfig(String text) {
		super(text);
		String[] tokens = text.split(",");
		dSpan = Integer.parseInt(tokens[2]);
		slowSpan = Integer.parseInt(tokens[3]);
	}
	
	@Override
	public String toString() {
		return super.toString()+","+dSpan+","+slowSpan;
	}
	
	/*public static void main(String[] args) {
		StochasticConfig config = new StochasticConfig();
		System.out.println(config);
		System.out.println(new StochasticConfig(config.toString()));
	}*/

	public int getdSpan() {
		return dSpan;
	}

	public void setdSpan(int dSpan) {
		this.dSpan = dSpan;
	}

	public int getSlowSpan() {
		return slowSpan;
	}

	public void setSlowSpan(int slowSpan) {
		this.slowSpan = slowSpan;
	}
	
}
